
import render1 from './component/first.js' ;

import render2 from './component/second.js' ;

import render3 from './component/third.js' ;



hashHandle()

window.onhashchange = hashHandle



function hashHandle() {
    // 获取hash值
    const {hash} = location ;
    if(!hash) {
        render1() ;
    }

    switch(hash) {
        case '#first' : render1() ;break ;
        case '#second' : render2() ;break ;
        case '#third' : render3() ;break ;
    }
}